 #{extends 'main.html' /} #{set title:'Assign user' /}

<div id=main>
	<h1>${user.name}</h1>
	#{ifnot organizations}
	<p>No Organizations</p>
	#{/ifnot}
	<ul>

		#{list items:organizations, as:'organization'}
		<li>Name :
			<h1>${organization.name}</h1> <a class="btn assign"
			href="@{Usercontroller.assignOrganizationLead(userId,organization.id)}"><span></span>assign
				as lead</a> <a class="btn show"
			href="@{Usercontroller.showEntity(userId,organization.id)}"><span></span>show
				Entities</a>
		</li> #{/list}
	</ul>
</div>